package com.maduar.filter.controller;

import com.maduar.filter.entity.UserEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;


/**
 * Description:
 *
 * @author maduar maduar@163.com
 * @date 2021-04-03 16:44
 */
@RestController
@CrossOrigin
public class FilterTestController {

    public static Logger logger = LoggerFactory.getLogger(FilterTestController.class);

    @PostMapping("/filter")
    public ResponseEntity<String> filterTest(@RequestBody UserEntity userEntity) {

        return ResponseEntity.ok(HttpStatus.OK.toString());
    }

}
